package com.pattern.singleton;

/**
 * 饿汉式单例
 */
public class HungrySingleton {
    private static final HungrySingleton hungry = new HungrySingleton();
    private HungrySingleton(){}
    public static HungrySingleton getInstance(){
        return hungry;
    }
}
